﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013C7 RID: 5063
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyActionInfo : IMessage<TrainPartyActionInfo>, IMessage, IEquatable<TrainPartyActionInfo>, IDeepCloneable<TrainPartyActionInfo>, IBufferMessage
	{
		// Token: 0x17003FD1 RID: 16337
		// (get) Token: 0x0600E2B0 RID: 58032 RVA: 0x0025DE85 File Offset: 0x0025C085
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyActionInfo> Parser
		{
			get
			{
				return TrainPartyActionInfo._parser;
			}
		}

		// Token: 0x17003FD2 RID: 16338
		// (get) Token: 0x0600E2B1 RID: 58033 RVA: 0x0025DE8C File Offset: 0x0025C08C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyActionInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003FD3 RID: 16339
		// (get) Token: 0x0600E2B2 RID: 58034 RVA: 0x0025DE9E File Offset: 0x0025C09E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyActionInfo.Descriptor;
			}
		}

		// Token: 0x0600E2B3 RID: 58035 RVA: 0x0025DEA5 File Offset: 0x0025C0A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyActionInfo()
		{
		}

		// Token: 0x0600E2B4 RID: 58036 RVA: 0x0025DEB0 File Offset: 0x0025C0B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyActionInfo(TrainPartyActionInfo other) : this()
		{
			this.queuePosition_ = other.queuePosition_;
			TrainPartyActionInfo.TrainActionCaseOneofCase trainActionCaseCase = other.TrainActionCaseCase;
			if (trainActionCaseCase <= TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
			{
				if (trainActionCaseCase != TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF)
				{
					if (trainActionCaseCase == TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
					{
						this.EPPNHJCNFCI = other.EPPNHJCNFCI.Clone();
					}
				}
				else
				{
					this.JJFGCDEHMPF = other.JJFGCDEHMPF.Clone();
				}
			}
			else if (trainActionCaseCase != TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent)
			{
				if (trainActionCaseCase == TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF)
				{
					this.HAKLMMJEHPF = other.HAKLMMJEHPF.Clone();
				}
			}
			else
			{
				this.TrainPartyEvent = other.TrainPartyEvent.Clone();
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E2B5 RID: 58037 RVA: 0x0025DF5D File Offset: 0x0025C15D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyActionInfo Clone()
		{
			return new TrainPartyActionInfo(this);
		}

		// Token: 0x17003FD4 RID: 16340
		// (get) Token: 0x0600E2B6 RID: 58038 RVA: 0x0025DF65 File Offset: 0x0025C165
		// (set) Token: 0x0600E2B7 RID: 58039 RVA: 0x0025DF6D File Offset: 0x0025C16D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint QueuePosition
		{
			get
			{
				return this.queuePosition_;
			}
			set
			{
				this.queuePosition_ = value;
			}
		}

		// Token: 0x17003FD5 RID: 16341
		// (get) Token: 0x0600E2B8 RID: 58040 RVA: 0x0025DF76 File Offset: 0x0025C176
		// (set) Token: 0x0600E2B9 RID: 58041 RVA: 0x0025DF92 File Offset: 0x0025C192
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyEvent TrainPartyEvent
		{
			get
			{
				if (this.trainActionCaseCase_ != TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent)
				{
					return null;
				}
				return (TrainPartyEvent)this.trainActionCase_;
			}
			set
			{
				this.trainActionCase_ = value;
				this.trainActionCaseCase_ = ((value == null) ? TrainPartyActionInfo.TrainActionCaseOneofCase.None : TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent);
			}
		}

		// Token: 0x17003FD6 RID: 16342
		// (get) Token: 0x0600E2BA RID: 58042 RVA: 0x0025DFAC File Offset: 0x0025C1AC
		// (set) Token: 0x0600E2BB RID: 58043 RVA: 0x0025DFC8 File Offset: 0x0025C1C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BOMJDHMAAJM HAKLMMJEHPF
		{
			get
			{
				if (this.trainActionCaseCase_ != TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF)
				{
					return null;
				}
				return (BOMJDHMAAJM)this.trainActionCase_;
			}
			set
			{
				this.trainActionCase_ = value;
				this.trainActionCaseCase_ = ((value == null) ? TrainPartyActionInfo.TrainActionCaseOneofCase.None : TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF);
			}
		}

		// Token: 0x17003FD7 RID: 16343
		// (get) Token: 0x0600E2BC RID: 58044 RVA: 0x0025DFE2 File Offset: 0x0025C1E2
		// (set) Token: 0x0600E2BD RID: 58045 RVA: 0x0025DFFE File Offset: 0x0025C1FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IHKAJFKLDBB JJFGCDEHMPF
		{
			get
			{
				if (this.trainActionCaseCase_ != TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF)
				{
					return null;
				}
				return (IHKAJFKLDBB)this.trainActionCase_;
			}
			set
			{
				this.trainActionCase_ = value;
				this.trainActionCaseCase_ = ((value == null) ? TrainPartyActionInfo.TrainActionCaseOneofCase.None : TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF);
			}
		}

		// Token: 0x17003FD8 RID: 16344
		// (get) Token: 0x0600E2BE RID: 58046 RVA: 0x0025E018 File Offset: 0x0025C218
		// (set) Token: 0x0600E2BF RID: 58047 RVA: 0x0025E034 File Offset: 0x0025C234
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BNOCKKLBIAB EPPNHJCNFCI
		{
			get
			{
				if (this.trainActionCaseCase_ != TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
				{
					return null;
				}
				return (BNOCKKLBIAB)this.trainActionCase_;
			}
			set
			{
				this.trainActionCase_ = value;
				this.trainActionCaseCase_ = ((value == null) ? TrainPartyActionInfo.TrainActionCaseOneofCase.None : TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI);
			}
		}

		// Token: 0x17003FD9 RID: 16345
		// (get) Token: 0x0600E2C0 RID: 58048 RVA: 0x0025E04E File Offset: 0x0025C24E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyActionInfo.TrainActionCaseOneofCase TrainActionCaseCase
		{
			get
			{
				return this.trainActionCaseCase_;
			}
		}

		// Token: 0x0600E2C1 RID: 58049 RVA: 0x0025E056 File Offset: 0x0025C256
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearTrainActionCase()
		{
			this.trainActionCaseCase_ = TrainPartyActionInfo.TrainActionCaseOneofCase.None;
			this.trainActionCase_ = null;
		}

		// Token: 0x0600E2C2 RID: 58050 RVA: 0x0025E066 File Offset: 0x0025C266
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyActionInfo);
		}

		// Token: 0x0600E2C3 RID: 58051 RVA: 0x0025E074 File Offset: 0x0025C274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyActionInfo other)
		{
			return other != null && (other == this || (this.QueuePosition == other.QueuePosition && object.Equals(this.TrainPartyEvent, other.TrainPartyEvent) && object.Equals(this.HAKLMMJEHPF, other.HAKLMMJEHPF) && object.Equals(this.JJFGCDEHMPF, other.JJFGCDEHMPF) && object.Equals(this.EPPNHJCNFCI, other.EPPNHJCNFCI) && this.TrainActionCaseCase == other.TrainActionCaseCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E2C4 RID: 58052 RVA: 0x0025E114 File Offset: 0x0025C314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.QueuePosition != 0U)
			{
				num ^= this.QueuePosition.GetHashCode();
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent)
			{
				num ^= this.TrainPartyEvent.GetHashCode();
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF)
			{
				num ^= this.HAKLMMJEHPF.GetHashCode();
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF)
			{
				num ^= this.JJFGCDEHMPF.GetHashCode();
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
			{
				num ^= this.EPPNHJCNFCI.GetHashCode();
			}
			num ^= (int)this.trainActionCaseCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E2C5 RID: 58053 RVA: 0x0025E1C8 File Offset: 0x0025C3C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E2C6 RID: 58054 RVA: 0x0025E1D0 File Offset: 0x0025C3D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E2C7 RID: 58055 RVA: 0x0025E1DC File Offset: 0x0025C3DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.QueuePosition != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.QueuePosition);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF)
			{
				output.WriteRawTag(210, 25);
				output.WriteMessage(this.JJFGCDEHMPF);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
			{
				output.WriteRawTag(250, 33);
				output.WriteMessage(this.EPPNHJCNFCI);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent)
			{
				output.WriteRawTag(250, 78);
				output.WriteMessage(this.TrainPartyEvent);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF)
			{
				output.WriteRawTag(250, 102);
				output.WriteMessage(this.HAKLMMJEHPF);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E2C8 RID: 58056 RVA: 0x0025E2B4 File Offset: 0x0025C4B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.QueuePosition != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.QueuePosition);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.TrainPartyEvent);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.HAKLMMJEHPF);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.JJFGCDEHMPF);
			}
			if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.EPPNHJCNFCI);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E2C9 RID: 58057 RVA: 0x0025E368 File Offset: 0x0025C568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyActionInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.QueuePosition != 0U)
			{
				this.QueuePosition = other.QueuePosition;
			}
			TrainPartyActionInfo.TrainActionCaseOneofCase trainActionCaseCase = other.TrainActionCaseCase;
			if (trainActionCaseCase <= TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
			{
				if (trainActionCaseCase != TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF)
				{
					if (trainActionCaseCase == TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
					{
						if (this.EPPNHJCNFCI == null)
						{
							this.EPPNHJCNFCI = new BNOCKKLBIAB();
						}
						this.EPPNHJCNFCI.MergeFrom(other.EPPNHJCNFCI);
					}
				}
				else
				{
					if (this.JJFGCDEHMPF == null)
					{
						this.JJFGCDEHMPF = new IHKAJFKLDBB();
					}
					this.JJFGCDEHMPF.MergeFrom(other.JJFGCDEHMPF);
				}
			}
			else if (trainActionCaseCase != TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent)
			{
				if (trainActionCaseCase == TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF)
				{
					if (this.HAKLMMJEHPF == null)
					{
						this.HAKLMMJEHPF = new BOMJDHMAAJM();
					}
					this.HAKLMMJEHPF.MergeFrom(other.HAKLMMJEHPF);
				}
			}
			else
			{
				if (this.TrainPartyEvent == null)
				{
					this.TrainPartyEvent = new TrainPartyEvent();
				}
				this.TrainPartyEvent.MergeFrom(other.TrainPartyEvent);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E2CA RID: 58058 RVA: 0x0025E476 File Offset: 0x0025C676
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E2CB RID: 58059 RVA: 0x0025E480 File Offset: 0x0025C680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 3282U)
				{
					if (num == 56U)
					{
						this.QueuePosition = input.ReadUInt32();
						continue;
					}
					if (num == 3282U)
					{
						IHKAJFKLDBB ihkajfkldbb = new IHKAJFKLDBB();
						if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.JJFGCDEHMPF)
						{
							ihkajfkldbb.MergeFrom(this.JJFGCDEHMPF);
						}
						input.ReadMessage(ihkajfkldbb);
						this.JJFGCDEHMPF = ihkajfkldbb;
						continue;
					}
				}
				else
				{
					if (num == 4346U)
					{
						BNOCKKLBIAB bnockklbiab = new BNOCKKLBIAB();
						if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.EPPNHJCNFCI)
						{
							bnockklbiab.MergeFrom(this.EPPNHJCNFCI);
						}
						input.ReadMessage(bnockklbiab);
						this.EPPNHJCNFCI = bnockklbiab;
						continue;
					}
					if (num == 10106U)
					{
						TrainPartyEvent trainPartyEvent = new TrainPartyEvent();
						if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.TrainPartyEvent)
						{
							trainPartyEvent.MergeFrom(this.TrainPartyEvent);
						}
						input.ReadMessage(trainPartyEvent);
						this.TrainPartyEvent = trainPartyEvent;
						continue;
					}
					if (num == 13178U)
					{
						BOMJDHMAAJM bomjdhmaajm = new BOMJDHMAAJM();
						if (this.trainActionCaseCase_ == TrainPartyActionInfo.TrainActionCaseOneofCase.HAKLMMJEHPF)
						{
							bomjdhmaajm.MergeFrom(this.HAKLMMJEHPF);
						}
						input.ReadMessage(bomjdhmaajm);
						this.HAKLMMJEHPF = bomjdhmaajm;
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040059B2 RID: 22962
		private static readonly MessageParser<TrainPartyActionInfo> _parser = new MessageParser<TrainPartyActionInfo>(() => new TrainPartyActionInfo());

		// Token: 0x040059B3 RID: 22963
		private UnknownFieldSet _unknownFields;

		// Token: 0x040059B4 RID: 22964
		public const int QueuePositionFieldNumber = 7;

		// Token: 0x040059B5 RID: 22965
		private uint queuePosition_;

		// Token: 0x040059B6 RID: 22966
		public const int TrainPartyEventFieldNumber = 1263;

		// Token: 0x040059B7 RID: 22967
		public const int HAKLMMJEHPFFieldNumber = 1647;

		// Token: 0x040059B8 RID: 22968
		public const int JJFGCDEHMPFFieldNumber = 410;

		// Token: 0x040059B9 RID: 22969
		public const int EPPNHJCNFCIFieldNumber = 543;

		// Token: 0x040059BA RID: 22970
		private object trainActionCase_;

		// Token: 0x040059BB RID: 22971
		private TrainPartyActionInfo.TrainActionCaseOneofCase trainActionCaseCase_;

		// Token: 0x02001EB2 RID: 7858
		public enum TrainActionCaseOneofCase
		{
			// Token: 0x04006A74 RID: 27252
			None,
			// Token: 0x04006A75 RID: 27253
			TrainPartyEvent = 1263,
			// Token: 0x04006A76 RID: 27254
			HAKLMMJEHPF = 1647,
			// Token: 0x04006A77 RID: 27255
			JJFGCDEHMPF = 410,
			// Token: 0x04006A78 RID: 27256
			EPPNHJCNFCI = 543
		}
	}
}
